package format_dispose

type Dict struct {
	data map[string]interface{}
}

func (d Dict) Get(key string) interface{} {
	if value, ok := d.data[key]; ok {
		return value
	} else {
		return nil
	}
}

func (d Dict) Set(key string, value interface{}) {
	d.data[key] = value
}

// 新建
func NewDict() Dict {
	return Dict{data: make(map[string]interface{})}
}
